# encoding: utf-8
# language: zh-CN

class LoginPage < MetenEnglishApp

  def initialize
    super
  end

  def type_username username
    type_text "userName","#{username}"
  end

  def type_password password
    type_text "password","#{password}"
  end

  def click_login
    touch_view_if_exist "login"
    wait_view_to_display "importCalendar"
  end

  def login_success
    wait_view_to_display "importCalendar"
  end

end
